package com.lagou.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "lagou-service-code", fallback = CodeFallbackClient.class, path = "/code")
public interface ServiceCodeClient {

    //校验验证码是否正确，0正确，1错误，2超时
    @RequestMapping("/validate/{email}/{code}")
    String validate(@PathVariable("email") String email, @PathVariable("code") String code);
}
